package 继承;

public class 调用父类有参构造器 {
    public static void main(String[] args) {
        S s = new S(1);
        System.out.println(s.getName());
    }
}
    class F{
        private int name;

        public F(int name){
            this.name = name;
        }

        public int getName() {
            return name;
        }

        public void setName(int name) {
            this.name = name;
        }
    }
    class S extends F{
        public S(int name){
            super(name);
        }
    }

